package com.yanghui.blueteethscreen

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.yanghui.blueteethscreen.driver.BlueToothDriver

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        BlueToothDriver.init(this, "YangHui")
        BlueToothDriver.registerRead {bytes, len->
            Log.i("BLUE TOOTH", String(bytes, 0, len))
        }
    }
}